//
//  UIView+Extension.m
//  wbOC
//
//  Created by sheji on 16/3/3.
//  Copyright (c) 2016年 sheji. All rights reserved.
//

#import "UIView+Extension.h"

@implementation UIView (Extension)

-(void)setBorderColor:(UIColor *)borderColor
{
    self.layer.borderColor  = borderColor.CGColor;
}

-(UIColor *)borderColor
{
    return [UIColor colorWithCGColor:self.layer.borderColor];
}

-(void)setBorderWith:(CGFloat)borderWith
{
    self.layer.borderWidth = borderWith;
}

-(CGFloat)borderWith
{
    return self.layer.borderWidth;
}

-(void)setCornerRadius:(CGFloat)cornerRadius
{
    self.layer.cornerRadius = cornerRadius;
    self.layer.masksToBounds = YES;
}

-(CGFloat)cornerRadius
{
    return self.layer.cornerRadius;
}
@end
